const router = require('koa-router')()
// const validate = require('koa2-validation')
const qiniu = require('../controllers/qiniu')
const auth = require('../controllers/auth')

router.prefix('/qiniu')

router.get('/uploadtoken/chatroom', qiniu.getUpLoadToken)

router.get('/uploadtoken', auth.jwtAuth, qiniu.getUpLoadToken)

router.get('/contentList', auth.jwtAuth, qiniu.getContentList)

module.exports = router
